list.setOnItemClickListener { parent, view, position, id -> val myItem = parent.getItemAtPosition(position) as MyDataObj }